package rad.framework.mda.generator.template.maven;

import org.eclipse.uml2.uml.Model;
import rad.framework.mda.generator.util.*;

public class Assembly
{
  protected static String nl;
  public static synchronized Assembly create(String lineSeparator)
  {
    nl = lineSeparator;
    Assembly result = new Assembly();
    nl = null;
    return result;
  }

  public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl;
  protected final String TEXT_1 = "<assembly>" + NL + "  <id>all</id>" + NL + "  <formats>" + NL + "    <format>tar.gz</format>" + NL + "    <format>tar.bz2</format>" + NL + "    <format>zip</format>" + NL + "  </formats>" + NL + "  <fileSets>" + NL + "    <fileSet>" + NL + "      <includes>" + NL + "        <include>README*</include>" + NL + "        <include>LICENSE*</include>" + NL + "        <include>NOTICE*</include>" + NL + "        <include>pom.xml</include>" + NL + "        <include>.*</include>" + NL + "      </includes>" + NL + "    </fileSet>" + NL + "    <fileSet>" + NL + "      <directory>target</directory>" + NL + "      <outputDirectory></outputDirectory>" + NL + "      <includes>" + NL + "        <include>site/**</include>" + NL + "        <include>*.jar</include>" + NL + "        <include>*.war</include>" + NL + "        <include>*.ear</include>" + NL + "      </includes>" + NL + "    </fileSet>" + NL + "    <fileSet>" + NL + "      <directory>src</directory>" + NL + "    </fileSet>" + NL + "  </fileSets>" + NL + "</assembly>";
  protected final String TEXT_2 = NL;

  public String generate(Object argument)
  {
    final StringBuffer stringBuffer = new StringBuffer();
    stringBuffer.append(TEXT_1);
    stringBuffer.append(TEXT_2);
    return stringBuffer.toString();
  }
}
